package com.mofeng.myshop.domain.dto.search;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.mofeng.myshop.domain.dto.base.SearchBaseMp;
import com.mofeng.myshop.domain.po.Commodity;
import com.mofeng.myshop.domain.po.OrderFrom;
import lombok.*;

import java.util.Date;

@Data
@AllArgsConstructor
@NoArgsConstructor
@ToString(callSuper = true)
@EqualsAndHashCode(callSuper = true)
@Builder(toBuilder = true)
public class OrderFromSearchDto extends SearchBaseMp {
    private Long userId;
    private String state;
    private Long projectId;
    private Long categoryId;

    public String getState() {
        return webNullHandle(state);
    }

    public Page<OrderFrom> getPageMp() {
        return super.getPageMp(OrderFrom.class);
    }
}
